﻿using System.Reflection;
using XinLife.Common.Filters;

namespace XinLife.Common.Setup
{
    /// <summary>
    /// 定时任务
    /// </summary>
    public static class JobSetup
    {
        public static void AddJobSetup(this IServiceCollection services)
        {
            if (services == null) throw new ArgumentNullException(nameof(services));

            services.AddHostedService<TimeoutExitService>();
            services.AddHostedService<SystemService>();
        }
    }
}
